class topsis_config:
    # TOPSIS参数

    Data_Dir = 'C:/Users/zxd/PycharmProjects/spider/zbj/zbjdata/proinfo/'
    Output_Dir = 'C:/Users/zxd/PycharmProjects/spider/topsis_zbj/res/'

    WEIGHTFLOW_DOWN = 0.3
    WEIGHTFLOW_UP = 0.3
    SUM_WEIGHT = 6

    WEIGHTS = {
        'Cumulative_turnover': 0.5,
        'halfyear_turnover': 1,
        'favorable_rate': 1,
        'service_quality_rate': 1,
        'membership_rank': 0.5,
        'Employers_recommend': 1,
        'enterprise_certification': 1
    }
    FIELDS = [
        'id', 'ctime', 'title', 'cost', 'describe', 'rate', 'bids', 'win_id',
        'uid', 'Cumulative_turnover', 'halfyear_turnover', 'favorable_rate', 'service_quality_rate', 'membership_rank',
        'Employers_recommend', 'enterprise_certification',
    ]
    FIELDS_OUTCOME = [
        'Cumulative_turnover', 'halfyear_turnover', 'favorable_rate', 'service_quality_rate', 'membership_rank',
        'Employers_recommend', 'enterprise_certification',
    ]

    FIELDS_ALL = [
        'id', 'ctime', 'title', 'cost', 'describe', 'rate', 'bids', 'win_id',
        'uid', 'Cumulative_turnover', 'halfyear_turnover', 'favorable_rate', 'service_quality_rate', 'membership_rank',
        'Employers_recommend', 'enterprise_certification',
    ]

    bid_fields = ['uid', 'Cumulative_turnover', 'halfyear_turnover', 'favorable_rate', 'service_quality_rate',
                  'membership_rank',
                  'Employers_recommend', 'enterprise_certification', ]
